Ext
		.define(
				'Service.mainPage.view.MapContainer',
				{
					extend : 'Ext.view.View',
					id : 'Service_mainPage_view_MapContainer',
					layout : 'fit',
					padding : '5 0 0 5',
					
					//12 12
					initComponent : function() {
						var me = this;
						var imageTpl = new Ext.XTemplate(
							    '<tpl for=".">',
							        '<div class="com_location" comId={id} style="width:30px;position:absolute;left:{[values.posX-16]}px;top:{[values.posY-12]}px;">',
							        	'<div style = "margin-left:6px;height:24px;width:16px;background-image:url(resources/imgs/building.png)"></div>',
							        	'<span style="font-size : 10px;width:50px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block">{name}</span>',
							        '</div>',
							    '</tpl>'
							);
						me.store = Ext
								.create('Service.mainPage.store.ComDetailStore');
						Ext
								.applyIf(
										me,
										{
											html : '<div id="map_addNote" style="width:100%;height:30px;visibility:hidden;color:red"><h2>在地图上点击选择新增小区位置</h2></div><img id="map_img" src="resources/imgs/zhen.jpg" style="width:1000px;height:580px"></img>',
											tpl : imageTpl,
											itemSelector  : 'div.com_location'
										});

						me.callParent(arguments);
					}
				});